home *** CD-ROM | disk | FTP | other *** search
- defineps PSWsweep(float x; float y; float radius; float degree)
- gsave
-
- 1.0 setgray % Draw the boarder circle
- x y radius 0 360 arc
- fill
-
- 1 setlinewidth % Fill with white
- 0.0 setgray
- x y radius 1 add 0 360 arc
- stroke
-
- -1.0 degree lt 361 degree gt and % If the degree given is within the circle, sweep..
- {
-
- % Draw three wedges fading from black and increasing in width...
-
- 0.66666 setgray
- x y radius 458.0 degree sub 461.0 degree sub arc
- x y lineto
- fill
-
- 0.33333 setgray
- x y radius 454.0 degree sub 457.0 degree sub arc
- x y lineto
- fill
-
- 0.0 setgray
- x y radius 450.0 degree sub 453.0 degree sub arc
- x y lineto
- fill
-
-
- } if
-
- grestore
- endps
-